home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / robo40_a.zip / TESTFILE.BAT < prev    next >
DOS Batch File  |  1992-02-12  |  711b  |  39 lines

  1. ECHO OFF
  2. CLS
  3. REM TESTFILE.BAT - Robocomm file testing batch file
  4. REM %1 = Filename (Including Path)
  5. REM %2 = Type of file (The file's extension)
  6. rd robotemp
  7. md ROBOTEMP>nul
  8. cd ROBOTEMP
  9. IF %2 == ZIP GOTO UNZIP
  10. IF %2 == LZH GOTO UNLZH
  11. IF %2 == ARC GOTO UNARC
  12. GOTO ERROR
  13. :UNZIP
  14. PKUNZIP %1
  15. GOTO DONE
  16. :UNARC
  17. PKUNPAK %1
  18. GOTO DONE
  19. :UNLZH
  20. LHARC x %1
  21. GOTO DONE
  22. :ERROR
  23. CLS
  24. ECHO %1 IS AN UNKNOWN FILE TYPE
  25. ECHO (You may want to edit your TESTFILE.BAT file)
  26. ECHO Parameter 1 was [%1]
  27. ECHO Parameter 2 was [%2]
  28. ECHO  
  29. pause
  30. GOTO END
  31. :DONE
  32. REM Use McAfee's viral scan to test the file for critters
  33. CLS
  34. SCAN *.* /A /nomem
  35. pause
  36. PROMPT Type EXIT to return to Robocomm$_$P$G
  37. %COMSPEC%
  38. :END
  39.